<template>
  <div class="goods">
    <good-item v-for="(item,index) in goods" :good-item-props="item" :key="index" :size="size"/>
  </div>
</template>

<script>
import GoodItem from './GoodItem.vue'

export default {
  name:'GoodsList',
  components:{
    GoodItem
  },
  props:{
    goods:{
      type:Array,
      default(){
        return []
      }
    },
    size: {
      type: Array,
      default(){
        return [175, 175]
      }
    } 
  }
}
</script>

<style>
  .goods{
    display: flex;
    flex-flow: wrap;
     padding: 3px;
     justify-content: space-around;
  }

</style>